package com.kaka.bus.engine.borrow.pact;

import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

/**
 * Created by zhangqi on 2016/10/24.
 */

public interface PactContract {

    interface View extends BaseView {
        void getPactInfoSuccess(String pact);
        void pactSuccess(HttpWrapper<String> pact);

        void netError(Throwable e);

    }

    interface Presenter extends BasePresenter<View> {
        void getPactInfo(String userId,String token,String device);
        void commitPact(String userId,String borrowId,String token);
    }
}
